import layout from '@/layout'
// export default {
//   path: '/role',
//   component: layout,
//   name: 'system',
//   meta: {
//     icon: 'el-icon-guide',
//     title: '系统管理'
//   },
//   children: [{
//     path: '',
//     component: () => import('@/views/system/role/index.vue'),
//     name: 'role',
//     meta: {
//       icon: 'el-icon-guide',
//       title: '角色管理'
//     }
//   }, {
//     path: 'add/:id?',
//     name: 'Roleadd',
//     component: () => import('@/views/system/role/add.vue')
//   }]
// }
export default {
  path: '/sys',
  name: 'system',
  component: layout,
  permission: 'sys',
  meta: { title: '系统管理', icon: 'el-icon-setting' },
  children: [{
    path: 'role',
    name: 'peimission',
    permission: 'sys:role',
    component: () => import('@/views/system/role/index'),
    meta: { title: '角色管理' }
  }, {
    path: 'user',
    name: 'employee',
    permission: 'sys:user',
    component: () => import('@/views/system/employee'),
    meta: { title: '员工管理' }
  }]
}
